<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>resizable demo</title>
  <!--<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/smoothness/jquery-ui.css">-->
  	<link rel="stylesheet" type="text/css" href="js/jquery-ui.min.css"/>
  <style>
  #resizable {
    width: 100px;
    height: 100px;
    background: #ccc;
    margin-left: 100px;
    margin-top: 100px;
}	</style>
  <script src="//code.jquery.com/jquery-1.12.4.js"></script>
  <script src="//code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
</head>
<body>
 
<div id="resizable"></div>
 
<script>
$( "#resizable" ).resizable({
	grid: [ 20, 10 ],
	handles: "n,e,s,w,ne,se,sw,nw,all",//伸缩方向
});
</script>
 
</body>
</html>